<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>js基础-随机数和事件进阶</title>
  <link rel="stylesheet" href="../css/common.css">
</head>

<body>

  <button id="btnRan">随机数</button>
  <span id="spRan"></span>
  <!-- 指定骰子数量的随机数 -->
  <input type="text" id="txtCount" value="1">
  <button id="btnCount">指定数量随机数</button>
  <div id="divCount"></div>
  <!-- 随机切换图片 -->
  <img src="../images/img1.jpg" id="myimg" width="160px">

  <!-- 随机抽奖 -->
  <button id="btnJiang">开始抽奖</button>
  <img src="../images/img1.jpg" id="imgjiang" width="160px">
  <span id="spName">随机姓名</span>



  <script src="js/h11.js"></script>
</body>

</html>